<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商品管理</title> <#include "/WEB-INF/content/module-index.html">
<script type="text/javascript">
var typeTree={
		<#list map.typeTree as item>
			"_${item.id}":"${item.text}"<#if item_has_next>,</#if>
		</#list>
	};
function typeFormatter(value,rowData,rowIndex){
	return eval("typeTree._"+value);
}

function statusFormatter(value,rowData,rowIndex){
	if(value==0){
		return "正常";
	}else	
		return "禁用";
}
</script>
<style>
a.btn-border{
	border: 1px solid #ccc;
}
</style>
</head>
<body>
<body class="easyui-layout">
	<div region="center" style="padding: 5px; background:#eee;">
		<div id="toolbar">
			<@auth code="service:service:new">
				<a id="new" class="easyui-linkbutton" onclick="javascript:add();" icon="icon-add" style="border: 1px solid #ccc" plain="true">新增</a>
			</@auth>
			<@auth code="service:service:*:edit">
				<a id="edit" class="easyui-linkbutton" onclick="javascript:edit();" icon="icon-edit" style="border: 1px solid #ccc" plain="true">编辑</a>
			</@auth>
		</div>
		<table id="grid" class="easyui-datagrid" url="query" align="center" idField="csid" rownumbers="true" striped="true" fitColumns="true" fit="true" pagination="true" singleSelect="true" toolbar="#toolbar">
			<thead>
				<tr>
					<th field=cusname width="50">客服名称</th>
					<th field="cstid" width="50" formatter="typeFormatter">客服类型</th>
					<th field="cusphone" width="50">客服号码</th>
					<th field="status" width="50" formatter="statusFormatter">状态</th>
					<th field="createtime" width="50">创建时间</th>
					<th field="creator" width="50">创建者</th>
				</tr>
			</thead>
		</table>
	</div>
</body>
</body>
</html>